package com.jhgsys.internal.base.service;

import com.jhgsys.internal.base.entity.BaseSafetyScoreConfig;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 安全积分设置 Service接口
 *
 * @author admin
 * @date 2024-08-07 11:34:15
 */
public interface IBaseSafetyScoreConfigService extends IService<BaseSafetyScoreConfig> {
    /**
     * 查询（分页）
     * @author admin
     * @date 2024-08-07 11:34:15
     * @param request QueryRequest
     * @param baseSafetyScoreConfig baseSafetyScoreConfig
     * @return IPage<BaseSafetyScoreConfig>
     */
    IPage<BaseSafetyScoreConfig> findBaseSafetyScoreConfigs(QueryRequest request, BaseSafetyScoreConfig baseSafetyScoreConfig);

    /**
     * 查询（所有）
     * @author admin
     * @date 2024-08-07 11:34:15
     * @param baseSafetyScoreConfig baseSafetyScoreConfig
     * @return List<BaseSafetyScoreConfig>
     */
    List<BaseSafetyScoreConfig> findBaseSafetyScoreConfigList(BaseSafetyScoreConfig baseSafetyScoreConfig);

    /**
    * 根据ID查询
    * @author admin
    * @date 2024-08-07 11:34:15
    * @param id
    * @return BaseSafetyScoreConfig
    */
    BaseSafetyScoreConfig findBaseSafetyScoreConfigById(String id);

    /**
     * 新增
     * @author admin
     * @date 2024-08-07 11:34:15
     * @param baseSafetyScoreConfig baseSafetyScoreConfig
     */
    void createBaseSafetyScoreConfig(BaseSafetyScoreConfig baseSafetyScoreConfig);

    /**
     * 修改
     * @author admin
     * @date 2024-08-07 11:34:15
     * @param baseSafetyScoreConfig baseSafetyScoreConfig
     */
    void updateBaseSafetyScoreConfig(BaseSafetyScoreConfig baseSafetyScoreConfig);

    /**
     * 逻辑删除
     * @author admin
     * @date 2024-08-07 11:34:15
     * @param baseSafetyScoreConfig baseSafetyScoreConfig
     * @param baseSafetyScoreConfigIds baseSafetyScoreConfigIds
     */
    void deleteBaseSafetyScoreConfig(BaseSafetyScoreConfig baseSafetyScoreConfig,String baseSafetyScoreConfigIds);

    /**
    * 物理删除
    * @author admin
    * @date 2024-08-07 11:34:15
    * @param baseSafetyScoreConfigIds baseSafetyScoreConfigIds
    */
    void physicallyDeleteBaseSafetyScoreConfig(String baseSafetyScoreConfigIds);

    /**
     * 根据所属公司查询
     * @param tenantId
     * @return
     */
    BaseSafetyScoreConfig findBaseSafetyScoreConfigByTenantId(String tenantId);
}
